package model

type Vehicle struct {
	Model

	// 用户字段
	Type          uint   `json:"type"`
	VehicleModel  string `json:"model" gorm:"column:model"`
	PlateNumber   string `json:"plate_number"`
	ChassisNumber string `json:"chassis_number"`

	// 管理员字段
	KeyPresent          int `json:"key_present"`
	RegistrationPresent int `json:"registration_present"`
	Door                int `json:"door"`
	Items               int `json:"items"`
	Damage              int `json:"damage"`
	Seal                int `json:"seal"`

	// 其它公共字段
	CreatedBy uint `json:"created_by"`
}

type VehicleListReq struct {
	Pagination
	Sorting
	Type int `json:"type" query:"type" default:"1"`
}
